from scipy.optimize import root

# 定义方程
def equation(x):
    return x**3 + 2*x**2 - 5

# 初始猜测
x0 = 1

# 求根
result = root(equation, x0)
print("Root:", result.x)